package com.example.bluetooth.ble.bean;

/**
 * Created by HP on 2017/5/27.
 */

public class BluetoothDeviceBean {
    private int rssi;
    private String address;
    private String name;

    public BluetoothDeviceBean(Builder builder) {
        this.rssi = builder.rssi;
        this.address = builder.address;
        this.name = builder.name;
    }

    public int getRssi() {
        return rssi;
    }

    public void setRssi(int rssi) {
        this.rssi = rssi;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static class Builder {
        private int rssi;
        private String address;
        private String name;

        public Builder rssi(int rssi) {
            this.rssi = rssi;
            return this;
        }

        public Builder address(String address) {
            this.address = address;
            return this;
        }

        public Builder name(String name) {
            this.name = name;
            return this;
        }
        public BluetoothDeviceBean build() {
            return new BluetoothDeviceBean(this);
        }
    }
}
